import request from '@/utils/request'

// 获取验证码
export const code = key => request.get('/captcha',
  {
    responseType: 'arraybuffer',
    params: {
      key
    }})

export const login = data => request.post('/login', data)
